Error formats

SNiFF+ integrates various compilers and other tools (like PurifyTM). The Shell tool and the Debugger are able to interpret the output messages of such tools based on a configurable error formats file. The file

$SNIFF_DIR/config/ErrorFormats contains a list of regular expressions for the most common error formats. If the error messages of your compiler are not covered by an entry in that file, you can add the corresponding regular expression. Regular expressions are explained in Regular Expressions in SNiFF+.
Supplied ErrorFormats file

# SNiFF+ - regular expressions for compiler error messages # "file.c", line 123 "\([^" ]+\)",[ ]+line[ ]+\([0-9]+\) # file.c, line 123 \([^ ]+\),[ ]+line[ ]+\([0-9]+\) # Purify: [line 123, file.c, line[ ]+\([0-9]+\),[ ]+\([^, ]+\) # file.c:123 \([^: ]+\):[ ]*\([0-9]+\) # file.c(123) \([^ ]+\.[^ ]+\)(\([0-9]+\))

(extract)
The parts of the regular expression that match the file name and the line number must be enclosed in a \( \) construct. Each regular expression must have exactly two such constructs.